package com.appleyk.task;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * <p>越努力，越幸运</p>
 *
 * @author appleyk
 * @version V.0.1.1
 * @blob https://blog.csdn.net/appleyk
 * @date created on  10:29 下午 2020/12/23
 */
public class DataCleanTask implements Runnable {
    private static Logger logger  = LoggerFactory.getLogger(DataCleanTask.class);
    @Override
    public void run() {
        logger.info("threadName：" + Thread.currentThread().getName());
        logger.info("数据清理工作开始...");
        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        logger.info("数据清理工作结束...");
        logger.info("======= 任务执行结束 =======");
    }
}
